<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/12 0012
 * Time: 11:43
 */
return [
  'websocket' => [
      'host'    => '0.0.0.0',
      'port'    => '9501',
      'options' => [
          //开启守护进程
          'daemonize'   => true,
          //worker进程数
          'worker_num'  => 3,
          //task进程数
          'task_worker_num' => 3,
          //记录进程pid文件
          'pid_file'    => storage_path('framework/server/websocket.pid'),
          //记录日志文件
          'log_file'    => storage_path('framework/server/websocket.log')
      ],
      //swoole推送消息队列通道
      'channel' => 'websocket:channel'
  ]
];